# $Id: Imakefile,v 1.3 2001/01/31 20:07:55 gjertsen Exp $
# Misc items to correctly perform stand-alone build for GPL Linux layer
# with standard GPFS development build framework; this avoids keeping
# yet another set of makefiles in synch.

MkdirTarget($(CXI_HEADER_DIR))
MkdirTarget($(PATCHED_HEADER_DIR))
MkdirTarget($(GPL_LIB_DIR))

InstallHeaders(DirIds.h, $(CXI_HEADER_DIR))

# stub for mktrace
InstallFiles(mktrace, $(INSTSHELLFLAGS), $(DESTDIR)/bin)

/* Install patch scripts */
InstallFileToFile(createpatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin)
InstallFileToFile(applypatch.sh, $(INSTSHELLFLAGS), $(DESTDIR)/bin)

stubs::
	echo "#!/bin/ksh" > mktrace
	echo "# mktrace stub" >> mktrace

clean::
	rm -f mktrace
